<template>
	<view class="details">
		<view class="details-title">{{info.name}}</view>
		<view class="details-date">更新于：{{info.issue_time}}</view>
		<view class="details-connet" v-html="info.body">
		
		</view>
	</view>
</template>

<script>
	export default {
		
		data() {
			return {
				id   :'',
				info : {}
			}
		},
		onLoad(e) {
			this.id  = e.id;
			this.getinfo();
		},
		methods: {
			getinfo(){
				let that  = this;
				that.$api.getArticleinfo({'id': that.id}).then(res=>{
					that.info = res.data.info;
					console.log(res);
				})
			},
			
		}
	}
</script>

<style lang="less">
	.details {
		.details-title {
			width: 690rpx;
			margin: auto;
			color: #333;
			font-size: 44rpx;
			font-weight: bold;
			padding-top: 32rpx;
			padding-bottom: 26rpx;
		}
		.details-date {
			color: #999999;
			width: 690rpx;
			margin: auto;
			padding-bottom: 20rpx;
		}
		.details-connet {
			width: 690rpx;
			margin: auto;
			
		}
	}
</style>